package com.zhangtai.modules.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class OldSalaryVo {
    @NotNull(message = "员工id不能为空")
    @ApiModelProperty(value="员工id",required = true)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long oid;

    @NotNull(message = "原单位薪资不能为空")
    @ApiModelProperty(value="原单位薪资，需要手动录入",required = true)
    private BigDecimal oldSalary;

    /**
     * 原单位绩效
     */
    @ApiModelProperty(value="原单位绩效，需要手动录入",required = false)
    private BigDecimal oldPerformance;
}
